const express = require('express');
const userRouter = require('./router/user_router');

const app = express();

app.use('/api', userRouter);

app.all('*', (req, res) => {
  res.send('<h1>404</h1>')
});

app.listen(3000, () => {
  console.log('server is running at port 3000');
});

//127.0.0.1:3000/api/users